package com.ossjk.oa.system.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.ossjk.core.base.entity.BaseEntity;

/**
 * <p>
 * 员工联系人
 * </p>
 *
 * @author chair
 * @since 2019-01-30
 */
public class Contacts extends BaseEntity<Contacts> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private String id;
    /**
     * 员工id
     */
    @TableField("eid")
    private String eid;
    @TableField("name")
    private String name;
    /**
     * 关系 1-父子、2-母子、3-兄弟、4-姐弟、5-兄妹、6-姐妹、7-亲戚、8-朋友、9-其他
     */
    @TableField("relationship")
    private BigDecimal relationship;
    /**
     * 手机
     */
    @TableField("phone")
    private BigDecimal phone;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getEid() {
        return eid;
    }

    public void setEid(String eid) {
        this.eid = eid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getRelationship() {
        return relationship;
    }

    public void setRelationship(BigDecimal relationship) {
        this.relationship = relationship;
    }

    public BigDecimal getPhone() {
        return phone;
    }

    public void setPhone(BigDecimal phone) {
        this.phone = phone;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Contacts{" +
        ", id=" + id +
        ", eid=" + eid +
        ", name=" + name +
        ", relationship=" + relationship +
        ", phone=" + phone +
        "}";
    }
}
